//
//  XS_BaseCCell.swift
//  Pods
//
//  Created by 韩云智 on 2020/7/15.
//

import UIKit
import RxCocoa
import RxSwift

open class XS_BaseCCell: UICollectionViewCell {
    open lazy var disposeBag = DisposeBag()
    open lazy var reuseDisposeBag = DisposeBag()
    //单元格重用时调用
    open override func prepareForReuse() {
        super.prepareForReuse()
        reuseDisposeBag = DisposeBag()
    }
    
    deinit {
        xsDebug { print("deinit: \(type(of: self))") }
    }
    public override init(frame: CGRect) {
        super.init(frame: frame)
        xsDebug { print("init: \(type(of: self))") }
        upView()
    }
    public required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    open func upView() {
        backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0) // 背景色为白色
    }
}
